package com.redlight;

import com.redlight.config.ConfigClass;
import org.mybatis.spring.boot.autoconfigure.MybatisAutoConfiguration;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration;
import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;
import org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication(
		exclude = {WebMvcAutoConfiguration.class, HibernateJpaAutoConfiguration.class, MybatisAutoConfiguration.class, DataSourceAutoConfiguration.class, DataSourceTransactionManagerAutoConfiguration.class}
)
@EnableCaching
@Configuration
@ComponentScan(basePackages = "com.redlight.controller.*")
@ComponentScan
@Import({ConfigClass.class})
@EnableTransactionManagement
public class RedlightControllerApplication {

	public static void main(String[] args) {
		SpringApplication.run(RedlightControllerApplication.class, args);
	}

}

